package com.mes.system.mapper;

import com.mes.common.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.mes.system.domain.SysTenant;

/**
 * 租户Mapper接口
 * @author hwg
 * @email hwg
 * @date 2023-03-25
 */
public interface SysTenantMapper extends BaseMapper<SysTenant>
{
    /**
     * 更新租户状态
     * @param sysTenant 租户
     * @return 结果
     */
    public int updateStatus(SysTenant sysTenant);

    /**
     * 批量删除租户
     * @param ids 需要删除的租户ID集合
     * @return
     */
    public int deleteSysTenantByIds(@Param("ids") String[] ids, @Param("DEL_FLAG_DELETE") String DEL_FLAG_DELETE);

    /**
     * 根据租户名称查询租户
     * @param tenantName
     * @return
     */
    SysTenant getByName(@Param("tenantName") String tenantName);
}
